<?php
$a=mysql_connect('localhost', 'root', 'tto123');
//  select a database
$b=mysql_select_db('feed',$a);
//enter the table name of which you want to get its size (must be in 'database_name')
$table='post_into';
// ask mysql for table information
$c=mysql_query("show table status like '{$table}'");
$d=mysql_fetch_object($c);
// check if query was valid (table exists)
if(is_object($d))
{
	// calculate the table size and round to one decimal place
    $total=round(($d->Data_length+$d->Index_length)/1024,1);
    echo "table <b>{$table}'s</b> size is <b>$total KB</b>";
}
else
{
    echo "no such table: <b>$table</b>";
} 